<template>
  <el-form-item label="排序">
    <el-radio-group v-model="optionModel.sort">
      <el-radio-button v-for="item in sortList" :key="item.value" :label="item.label"
                 :value="item.value"/>
    </el-radio-group>
  </el-form-item>
</template>

<script>
  import i18n from "@/utils/i18n"

  export default {
    name: "sort-editor",
    mixins: [i18n],
    props: {
      designer: Object,
      selectedWidget: Object,
      optionModel: Object,
    },
    data() {
      return {
        sortList: [
          {label: '降序', value: 'desc'},
          {label: '默认', value: ''},
          {label: '升序', value: 'asc'},
        ],

      }
    },

  }
</script>

<style scoped>

</style>
